import reqDance from "../utils/reqDance.js";
const url1='/moment/viewRecords?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10'
//历史 start-------------------
export const getPage = () => {
    return reqDance.get(url1)
}
export const deleData=(data)=>{
    return reqDance.post('/task/tasks?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4',data)
}
//搜索
//https://www.dance365.com/apis/moment/viewRecords?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10&pageNum=0&keyword= %E5%B0%91%E5%BA%86
export const SearchDataList=(data)=>{
    return reqDance.get(`/moment/viewRecords?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10&pageNum=0&keyword=${data}`)
}
//历史 end---------------------

//缓存 start------------------------------
//https://www.dance365.com/apis/userCenter/userVideoCacheSyncs/collect/findByType?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10&type=video
export const getList = () => {
    return reqDance.get('/userCenter/userVideoCacheSyncs/collect/findByType?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10&type=video')
}
//搜索
export const souSuo=(data)=>{
    return reqDance.get(`https://www.dance365.com/apis/userCenter/userVideoCacheSyncs/collect/findByType?access_token=fdb59b2e-5b46-4bfa-b688-741b805850d4&pageSize=10&pageNum=0&type=video&keyword=${data}`)
}













//缓存 end--------------------------------
